﻿using Common.Communication;
using DeviceBase.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceBase.Interfaces
{
    public interface IWanYongBiao:IDevice
    {
        /// <summary>
        /// 采集电压
        /// </summary>
        /// <returns></returns>
        Result<double> GetVoltage(WanYongBiaoEnum.VoltageMode mode = WanYongBiaoEnum.VoltageMode.DC);
        /// <summary>
        /// 采集电流
        /// </summary>
        /// <returns></returns>
        Result<double> GetCurrent(WanYongBiaoEnum.CurrentMode mode = WanYongBiaoEnum.CurrentMode.DC);
        /// <summary>
        /// 采集电阻
        /// </summary>
        /// <returns></returns>
        Result<double> GetResistance(WanYongBiaoEnum.ResistanceMode mode = WanYongBiaoEnum.ResistanceMode._2WR);
        /// <summary>
        /// 通断检测
        /// </summary>
        /// <returns></returns>
        Result<double> GetContinuity();
    }
}
